Skip to main content

getAsColor

Type​

handler

Summary​

Get any value as color

Syntax​

getAsColor(<pValue>,<pDefault>)

Description​

Try to get any value as a color.

note

This handler is for internal use.

Parameters​

NameTypeDescription

pValue

Value to be converted to color. pDefault: Default value in case the conversion fails

Value​

NameTypeDescription

return

A color as result of the conversion, pDefault if the conversion fails.